#ifndef __LIBNFILE__
#define __LIBNFILE__


#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <time.h>
#include <stdio.h>

// define for file type
#define NFILE_FT_REGFILE 1
#define NFILE_FT_DIRECTORY 2
#define NFILE_FT_CHARSPEC 3
#define NFILE_FT_BLOCK 5
#define NFILE_FT_FIFO 6
#define NFILE_FT_SYMLNK 4
#define NFILE_FT_SOCKET 7


long long nfile_get_size(const char *path);
char    *nfile_get_size_s(const char *path, char *buff, int buff_size);
time_t  nfile_get_date_last_modif(const char *path);
char    *nfile_get_date_last_modif_s(const char *path, char *buff
                                     , int buff_size);


int     nfile_check_permission(const char *path
                                    , char permission);
int     nfile_get_type(const char *path);
char    *nfile_get_mime_type(const char *path
                             , char *default_type);




#endif


